package com.android.djlmapp.activity.order;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.android.djlmapp.R;
import com.android.djlmapp.base.BaseActivity;
import com.android.djlmapp.fragment.DingDanLieBiaoFragment;

/**
 * @Author wangziheng
 * @ProjectName djlm
 * @ClassName OrderListActivity
 * @package com.android.djlmapp.activity.order
 * @data 2019/1/4 18:06
 * @Describe
 * @Change
 */
public class OrderListActivity extends BaseActivity {

    DingDanLieBiaoFragment mOrderListFragment;
    LinearLayout mBackBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_order_list_layout);
        mOrderListFragment = findFragment(DingDanLieBiaoFragment.class);
        if (mOrderListFragment == null) {
            mOrderListFragment = DingDanLieBiaoFragment.newInstance(DingDanLieBiaoFragment.class.getName());
        }
        loadRootFragment(R.id.orderListContentLayout, mOrderListFragment);
        initView();
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onResume() {
        super.onResume();

        mBackBtn = mOrderListFragment.getView().findViewById(R.id.ll_top_back);
        mBackBtn.setVisibility(View.VISIBLE);
        mBackBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }
}
